package cn.fuxue.hrms.service.impl;

import cn.fuxue.hrms.common.entity.Position;
import cn.fuxue.hrms.mapper.PositionMapper;
import cn.fuxue.hrms.service.PositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PositionServiceImpl implements PositionService {
    @Autowired
    private PositionMapper positionMapper;

    /*查询所有的岗位信息*/
    @Override
    public List<Position> selectAllPosition() {
        return positionMapper.selectAllPosition();

    }

    @Override
    public int deleteByPositionId(Integer id) {
        return positionMapper.deleteByPositionId(id);

    }

    @Override
    public List<Position> findId(){
        return positionMapper.findId();
    }


}
